home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 163
/
163.d81
/
crater maker
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
4KB
|
133 lines
5 poke55,.:poke56,56:clr
10 dv=peek(186):ifdv<8thendv=8
15 poke53281,.:poke53280,.:print"[147]"
16 poke53371,0
25 poke53272,31
35 ad=49152:tq=ti
40 sysad:sysad+12
45 sysad+9,0
50 print"[147][153] [196]edicated to the memory of-"
55 print:printtab(5)"[197]ugene [211]hoemaker [1928 - 1997]"
57 print:printtab(8)"[196]ied doing what he loved!"
70 ifti<tq+150then70
80 sysad+9,1
90 bs$="[150][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164][157][164]"
95 print"[147][150][220][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][221]"
100 printbs$""tab(38)bs$
105 print"[150][255][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][162][161]"
110 print""tab(11)"[150][166] [195][210][193][212][197][210] [205][193][203][197][210][150] [165]"
115 print:printtab(5)"[150]-[153][197]nter [208]arameters for [207]bject [150]-"
120 poke214,6:print:printtab(4)"[159][196]iameter [158]([205]eters - 50+): ";
122 l9%=5:gosub385:id=q9
125 ifid<=49thenprint"[145]":goto120
127 sysad+9,2
130 poke214,8:print:printtab(4)"[159][196]ensity [158](kg/cu/m - 2000+): ";
132 l9%=4:gosub385:ir=q9
135 ifir=<1999thenprint"[145]":goto130
137 sysad+9,2
140 poke214,10:print:printtab(4)"[159][214]elocity [158](km/s - 4+): ";
142 l9%=4:gosub385:ik=q9
145 ifik=<4thenprint"[145]":goto140
147 sysad+9,2
150 poke214,12:print:printtab(4)"[159][193]ngle [158]20[219] [159]to [158]90[219]: ";:l9%=2:gosub385:ga=q9
155 ifga=<20orga=>91thenprint"[145]":goto150
157 sysad+9,2
160 poke214,17:print:printtab(3)"[153][193]re the parameters correct? (y[153]/n[153])"
170 gosub530
175 ifa$="n"then80
190 iv=ik*1000:vi=(NULL)*id*id*id/6
195 gf=(sin(ga/180*(NULL)))^.33
200 mi=ir*vi:ke=.5*mi*iv*iv
205 kt=ke/4.2e+12
210 print"[147]"tab(7)"[150]-[154][207]bject's [208]arameters[150]-":sysad+9,3
215 print"[158][214]olume: ";int(vi);"[158]cu/m"
220 print"[205]ass: ";int(mi)/1000;"[158]metric tons"
225 print"[203]inetic [197]nergy: ";int(ke)"[158][202]oules"
230 print"[203]ilo-[212]ons of [212][206][212]: ";int(kt)
245 cd=36*(kt^.3)*gf:ca=cd*1.25
250 cz=9*(kt^.3)*gf:cl=cz*1.25
255 cv=(.5*(NULL))*(cd*cd/4*cz)
260 ce=2.15*cd
265 ifca=>5000thenca=ca*1.3
270 ifcl=>5000thencl=cl*1.3
275 printtab(8)"[150]-[154][195]rater [208]arameters[150]-"
280 printtab(3)"[150]-[159][196][201][193][205][197][212][197][210][150]-"
285 print"[158][193]ctual [211]ize: ";int(cd)/1000;"[158]kms"
290 print"[193]pparent [211]ize: ";int(ca)/1000;"[158]kms"
295 print:printtab(3)"[150]-[159][196][197][208][212][200][150]-"
300 print"[158][193]ctual [196]epth: ";int(cz)/1000;"[158]kms"
305 print"[193]pparent [196]epth: ";int(cl)/1000;"[158]kms"
310 print"[212]arget [210]emoved: ";int(cv)/1000;"[158]cu/kms"
315 print"[197]jecta [211]pread: ";int(ce)/1000;"[158][203]ms [193]cross":sysad+9,4
320 ifint(cd)>=100andint(cd)<=3999thengosub435
325 ifint(cd)>=4000andint(cd)<=14999thengosub455
330 ifint(cd)>=15000andint(cd)<=75000thengosub475
335 ifint(cd)>=75001andint(cd)<=125000thengosub495
340 ifint(cd)>=125001thengosub515
345 gosub3000
350 goto80
385 q9$="":poke198,.
390 geta$
395 poke646,rnd(1)*15+1:print"*[157]";:ifa$=""then390
400 ifa$=chr$(13)thenprint" ":q9=val(q9$):return
405 if(a$=chr$(20)andlen(q9$))thenq9$=left$(q9$,len(q9$)-1):goto432
410 iflen(q9$)>=l9%thensysad+9,2:goto390
415 if(a$>="0"anda$<="9")then425
420 goto390
425 q9$=q9$+a$
430 print""a$;:goto390
432 print" [157][157] [157]";:goto390
435 print:print"[150][211]mall crater, only local damage! [204]ike"
440 print"[153] [146][163][176][176][176][180] [146] [150][205]eteor [195]rater in [193]rizona!"
445 print"[215]ould start a panic in your community!"
450 return
455 print:print"[150][194]ig trouble for any area [200][201][212]! [215]iped"
460 print"[153] [146][163][176][176][176][176][169][176][176][176][176][180] [146] [150]out any [205]etropolis"
465 print"that lay in its path on impact!"
470 return
475 print:printtab(2)"[150][195]ountries would suffer greatly!"
480 printtab(6)"[153] [146][174][157][157] [146][163][176][176][176][176][176][176][176][178][179][175][176][176][176][176][176][176][176][180] [146][145][157][157][177] [146]"
485 print:printtab(2)"[150][205]illions could be killed instantly!"
490 return
495 print:print"[150][205]ajor enviromental damage to our [197]arth!"
500 printtab(2)"[153] [146][174][157][157] [146][163][176][176][176][176][176][176][176][176][176][176][176][176][176][178][179][175][176][176][176][176][176][176][176][176][176][176][176][178][180] [146][145][157][157][177] [146]"
505 print:print"[150] [215]ould be a real challege to overcome!"
510 return
515 print:print"[150] 10-25% of life on [197]arth may survive!"
520 print" [153][174][157] [146][174][157][157] [146][163][176][176][176][176][176][176][176][176][176][150][197]arth's mantle[146][153][176][176][176][176][176][176][176][176][176][180] [146][145][157][157][177] [146][145][157][177]"
525 return
530 poke198,0
540 geta$
550 ifa$<>"y"anda$<>"n"then540
560 return
3000 poke214,20:print:printtab(8)"[159](1[159]) [196]rop another one
3010 [153][163]8)"open(2open) (NULL)o (NULL)(NULL)right$(NULL)val(NULL)(NULL)val (NULL)enu"
3020 [151]198,0
3030 [161]a$:[139]a$[179]"1"[176]a$[177]"2"[167]3030
3040 [139]a$[178]"1"[167][142]
3050 [158]ad[170]15
3060 [153]"loadload"[199](34)"b.universe"[199](34)","dv
3070 [153]"run28"
3080 [151]631,13:[151]632,13:[151]198,2:[128]
10000 d[178][194](186):n$[178]"crater maker":[159]15,d,15,"s0:"[170]n$:[160]15:[148]n$,d:[128]
40000 [129]i[178]8[164]29:[151]820[170]i,i:[130]:[139]dv[177]8[175]dv[179]30[167][151]828,dv:[151]820[170]dv,8
40010 a$[178]"presenter":[141]40030:a$[178]"hello connect":[141]40030
40020 [153]"load":[151]53272,23:[151]186,8:[151]2048,0:[151]44,8:[151]43,1:[128]
40030 [129]j[178]8[164]29:i[178][194](820[170]j):[139]i[178]14[167][130]
40040 [160]2:[159]2,i,2:[160]2:[139]st[167]40060
40050 [160]15:[159]15,i,15,"r0:"[170]a$[170]"="[170]a$:[132]15,er:[160]15:[139]er[178]63[167]40070
40060 [130]:[142]
40070 a$[178]"hello connect":q$[178][199](34):[151]646,[194](53281):[153]"load":[151]53272,23
40080 [153]"loadp(NULL)2048,0:p(NULL)44,8:p(NULL)43,1:p(NULL)56,160:p(NULL)55,0:clr:l(NULL)"q$a$q$","i
40090 [153]"run:":[151]631,13:[151]632,13:[151]198,2:[128]
60000 [153]"":z$[178]" cont ":[151]214,8:[153]
60010 [153]" openfrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefre":[129]i[178]0[164]10:[153]z$:[130]
60020 [153]" loglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogloglogcont"
60030 z$(0)[178]"spc( len (NULL) atn (NULL) val (NULL) (NULL) atn (NULL) val (NULL) fn":z$(1)[178]"by left$enry [lenorky] lenochran"
60040 z$(3)[178]"(len) 1997 by mid$ & asc (NULL)ublishing, right$nc."
60050 z$(5)[178]"(NULL)his program is not shareware
60070 z$(6)="or in the public domain."
60080 z$(8)="1-800-594-3370 or 1-318-221-8718
60090 [151]214,10:[153]
60100 [129]i[178]0[164]8:[153][163]20[171]([195](z$(i))[173]2))""z$(i):[130]:[142]